<?php
return array(
	'searchColumns' => array(
		'name',
		'star'=>array('dropDownList',Yii::app()->enum->options('basic.scenicStar')),
	),
	
	'dataColumns' => array(
		'id',
		'name',
		array(
			'name' => 'star',
			'value' => 'Yii::app()->enum->lookup("basic.scenicStar", $data->star)',
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'template' => '{view}{update}{album}{delete}',
			'buttons' => array(
				'album' => array(
					'label' => '图册',
					'url' => 'Yii::app()->controller->createUrl("scenicAlbum/admin", array("object_id"=>$data->id))'
				),	
			),
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>